package com.eshop.modules.product.vo;

import com.eshop.modules.product.service.dto.AttrValueDto;
import java.util.List;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiModel;
import java.io.Serializable;

@ApiModel(value = "YxStoreProductAttrQueryVo对象", description = "商品属性表查询参数")
public class StoreProductAttrQueryVo implements Serializable
{
    private static final long serialVersionUID = 1L;
    private Long id;
    @ApiModelProperty("商品ID")
    private Long productId;
    @ApiModelProperty("属性名")
    private String attrName;
    @ApiModelProperty("属性值")
    private String attrValues;
    @ApiModelProperty("属性值集合")
    private List<AttrValueDto> attrValue;
    @ApiModelProperty("属性")
    private List<String> attrValueArr;
    
    public Long getId() {
        return this.id;
    }
    
    public Long getProductId() {
        return this.productId;
    }
    
    public String getAttrName() {
        return this.attrName;
    }
    
    public String getAttrValues() {
        return this.attrValues;
    }
    
    public List<AttrValueDto> getAttrValue() {
        return this.attrValue;
    }
    
    public List<String> getAttrValueArr() {
        return this.attrValueArr;
    }
    
    public void setId(final Long id) {
        this.id = id;
    }
    
    public void setProductId(final Long productId) {
        this.productId = productId;
    }
    
    public void setAttrName(final String attrName) {
        this.attrName = attrName;
    }
    
    public void setAttrValues(final String attrValues) {
        this.attrValues = attrValues;
    }
    
    public void setAttrValue(final List<AttrValueDto> attrValue) {
        this.attrValue = attrValue;
    }
    
    public void setAttrValueArr(final List<String> attrValueArr) {
        this.attrValueArr = attrValueArr;
    }
    
    @Override
    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof StoreProductAttrQueryVo)) {
            return false;
        }
        final StoreProductAttrQueryVo other = (StoreProductAttrQueryVo)o;
        if (!other.canEqual(this)) {
            return false;
        }
        final Object this$id = this.getId();
        final Object other$id = other.getId();
        Label_0065: {
            if (this$id == null) {
                if (other$id == null) {
                    break Label_0065;
                }
            }
            else if (this$id.equals(other$id)) {
                break Label_0065;
            }
            return false;
        }
        final Object this$productId = this.getProductId();
        final Object other$productId = other.getProductId();
        Label_0102: {
            if (this$productId == null) {
                if (other$productId == null) {
                    break Label_0102;
                }
            }
            else if (this$productId.equals(other$productId)) {
                break Label_0102;
            }
            return false;
        }
        final Object this$attrName = this.getAttrName();
        final Object other$attrName = other.getAttrName();
        Label_0139: {
            if (this$attrName == null) {
                if (other$attrName == null) {
                    break Label_0139;
                }
            }
            else if (this$attrName.equals(other$attrName)) {
                break Label_0139;
            }
            return false;
        }
        final Object this$attrValues = this.getAttrValues();
        final Object other$attrValues = other.getAttrValues();
        Label_0176: {
            if (this$attrValues == null) {
                if (other$attrValues == null) {
                    break Label_0176;
                }
            }
            else if (this$attrValues.equals(other$attrValues)) {
                break Label_0176;
            }
            return false;
        }
        final Object this$attrValue = this.getAttrValue();
        final Object other$attrValue = other.getAttrValue();
        Label_0213: {
            if (this$attrValue == null) {
                if (other$attrValue == null) {
                    break Label_0213;
                }
            }
            else if (this$attrValue.equals(other$attrValue)) {
                break Label_0213;
            }
            return false;
        }
        final Object this$attrValueArr = this.getAttrValueArr();
        final Object other$attrValueArr = other.getAttrValueArr();
        if (this$attrValueArr == null) {
            if (other$attrValueArr == null) {
                return true;
            }
        }
        else if (this$attrValueArr.equals(other$attrValueArr)) {
            return true;
        }
        return false;
    }
    
    protected boolean canEqual(final Object other) {
        return other instanceof StoreProductAttrQueryVo;
    }
    
    @Override
    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final Object $id = this.getId();
        result = result * 59 + (($id == null) ? 43 : $id.hashCode());
        final Object $productId = this.getProductId();
        result = result * 59 + (($productId == null) ? 43 : $productId.hashCode());
        final Object $attrName = this.getAttrName();
        result = result * 59 + (($attrName == null) ? 43 : $attrName.hashCode());
        final Object $attrValues = this.getAttrValues();
        result = result * 59 + (($attrValues == null) ? 43 : $attrValues.hashCode());
        final Object $attrValue = this.getAttrValue();
        result = result * 59 + (($attrValue == null) ? 43 : $attrValue.hashCode());
        final Object $attrValueArr = this.getAttrValueArr();
        result = result * 59 + (($attrValueArr == null) ? 43 : $attrValueArr.hashCode());
        return result;
    }
    
    @Override
    public String toString() {
        return "StoreProductAttrQueryVo(id=" + this.getId() + ", productId=" + this.getProductId() + ", attrName=" + this.getAttrName() + ", attrValues=" + this.getAttrValues() + ", attrValue=" + this.getAttrValue() + ", attrValueArr=" + this.getAttrValueArr() + ")";
    }
}
